#version 330 core
out vec4 FragColor;

in vec3 ourColor;
in vec2 TexCoord;

// texture sampler 采样器
uniform sampler2D texture1;
uniform sampler2D texture2;

void main()
{
	FragColor = mix(texture(texture1, TexCoord)* vec4(ourColor, 1.0), texture(texture2, 
	vec2(1.0 - TexCoord.x, TexCoord.y)), 0.2);
}